package entity.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 交易明细表
 * </p>
 *
 * @author ZL
 * @since 2022-11-12
 */
@Getter
@Setter
@TableName("transaction_detail")
public class Detail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 订单ID
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 金额
     */
    @TableField("money")
    private Integer money;

    /**
     * 对方账户
     */
    @TableField("person_account")
    private String personAccount;

    /**
     * 支付方式 0 线上充值 1 提现至卡 2 转给他人账户 3 运费结算
     */
    @TableField("means_exchange")
    private String meansExchange;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 删除标识
     */
    @TableField("delete_flag")
    private String deleteFlag;


}
